package com.simon.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.simon.system.model.Dict;
import org.springframework.stereotype.Repository;

@Repository
public interface DictMapper {

	int deleteByPrimaryKey(Integer id);

    int insert(Dict record);

    int insertSelective(Dict record);

    Dict selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dict record);

    int updateByPrimaryKey(Dict record);
    
    List<Dict> queryDicts(@Param("code") String code,@Param("name") String name);
    
    List<Dict> subDictList(String code);
    
    Dict findByCode(@Param("code") String code,@Param("pid") Integer pid);
}